﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace Jzy.Web.WebSite.Controls
{
    public partial class Top : System.Web.UI.UserControl
    {
        private string _menuIndex;
        public string MenuIndex
        {
            get
            {
                if (_menuIndex == null)
                {
                    _menuIndex = Request["MenuIndex"];
                }
                if (string.IsNullOrEmpty(_menuIndex))
                {
                    _menuIndex = "0";
                }
                return _menuIndex;
            }

        }
        protected void Page_Load(object sender, EventArgs e)
        {
            HtmlGenericControl li = (HtmlGenericControl)pnlMenu.FindControl("li" + MenuIndex);
            if (li != null)
            {
                li.Attributes.Add("class", "menuli menuli_sel");
            }
        }
    }
}